package com.itheima.service;

import com.itheima.pojo.Menu;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService{
    //查询所有角色列表
    List<Role> findAllRole();

    List<Menu> findRoleByUsername(String username);

    void add(Role role, Integer[] permissionIds);

    PageResult findPage(QueryPageBean pageBean);

    Role findById(Integer id);

    void edit(Role role, Integer[] permissionIds);

    List<Integer> findPermissionIdsByRoleId(Integer id);

    List<Integer> findMenuIdsByRoleId(Integer id);

    void delById(Integer id);
}
